{% extends 'base.html' %}
{% from "macros.html" import pyecharts_js %}
{% block title %}Awesome-pyecharts{% endblock title %}



{% block show %}
    <div id="wenzhang" class="ex">你好<br></div>
    <div id="bar" class = diva></div>
    <div id="line" class = diva ></div>
    <div id="map" class = diva ></div>
    <div id="line_add" class = diva ></div>
{% endblock %}


{% block scripts %}
    <!-- #JavaScript脚本 -->

    {{ pyecharts_js("line","get_line_areastyle") }}
    {{ pyecharts_js("bar","get_bar_chart") }}
    {{ pyecharts_js("map","get_map_base") }}
    {{ pyecharts_js("line_add","get_line_chart_add",1000,'update_line_data') }}

{#    <script>#}
{#        $(#}
{#            function () {#}
{#                var chart = echarts.init(document.getElementById('map'), 'white', {renderer: 'canvas'});   // getElemementBYID("名称")  和上面的DIV  的ID要一样#}
{#                $.ajax({#}
{#                    type: "GET",#}
{#                    url: "{{ url_for('get_map_base') }}",#}
{#                    dataType: 'json',#}
{#                    success: function (result) {#}
{#                        chart.setOption(result);#}
{#                    }#}
{#                });#}
{#            }#}
{#        )#}
{#    </script>#}
{% endblock scripts %}